package com.zhu.instructions.constants;

import com.zhu.instructions.base.NoOperandsInstruction;
import com.zhu.rtda.Frame;

/**
 * fconst_1: 将 float 常量 1.0f 压入操作数栈
 */
public class FCONST_1 extends NoOperandsInstruction {

    @Override
    public void execute(Frame frame) {
        frame.getOperandStack().pushFloat(1.0f);
    }

    @Override
    public String toString() {
        return "fconst_1";
    }
}